package ma.ensao.egicom.core.dao.interfaces;

import java.util.List;

import ma.ensao.egicom.core.model.Customer;

import org.hibernate.Query;

public interface CustomerDAO {

    public void save(Customer transientInstance);

    public void delete(Customer persistentInstance);

    public Customer findById(java.lang.Integer id);

    public List findByProperty(String propertyName, Object value);

    public List findById(Object id);

    public List findByFirstname(Object firstname);

    public List findByLastname(Object lastname);

    public List findByEmail(Object email);

    public List findByPassword(Object password);

    public List findByAdr(Object adr);

    public List findByCity(Object city);

    public List findAll();

}
